package com.njym.java.security.admin.biz;

import com.njym.java.security.admin.entity.PaymentRecord;
import com.njym.java.security.admin.entity.PaymentRecordVo;
import com.njym.java.security.admin.mapper.PaymentRecordMapper;
import com.njym.java.security.common.biz.BaseBiz;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;


/**
 * 
 *
 * @author zhy
 * @email ${email}
 * @date 2019-11-30 14:09:49
 */
@Service
public class PaymentRecordBiz extends BaseBiz<PaymentRecordMapper, PaymentRecord> {

	public List<PaymentRecordVo> queryByEx(Integer courseId, String timex) {
		return mapper.queryByEx(courseId,timex);
	}

	public List<PaymentRecordVo> queryByQuater(Integer courseId) {
		return mapper.queryByQuater(courseId);
	}

	public List<String> getSeasons() {
		return mapper.getSeasons();
	}

	public List<String> getSectionsByEx(String timex) {
		return mapper.getSectionsByEx(timex);
	}

	public List<PaymentRecordVo> getTotals(Date startDate, Date endDate, Integer flag) {
		return mapper.getTotals(startDate,endDate,flag);
	}

	public List<PaymentRecordVo> getTotalsByPerson(Date startDate, Date endDate, Integer flag) {
		return mapper.getTotalsByPerson(startDate,endDate,flag);
	}
}